From: Mary Boetcher, mary_boetcher@quickmail.apple.com
Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
Reply to: RE>deleting commands bug?
>>I have noticed that FW_CCommand::Execute() will delete the command "this"
>>under TRY/CATCH if the execution throws an exception. This does not seem to
>>be the case in ::UndoIt() or ::RedoIt(). I am concerned about leaving the
>>command in the action stack too when the undo or redo fails.
>>What are your thoughts? How should we be handling exceptions at these points?
You shouldn't have to do anything special. Once the command has been added to the action stack, it is OpenDoc's responsibility. If an exception occurs in Undo or Redo, OpenDoc catches it and clears the action history. As part of that process it will call DisposeActionState for each of the commands on the stack.